package com.mt.customer.controller;

import com.mt.common.PagerInfo;
import com.mt.common.ServiceResult;
import com.mt.customer.api.service.ICustomerCourseGoodsService;
import com.mt.customer.entity.CustomerCourseGoodsEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;
@CrossOrigin
@RestController
public class CustomerCourseGoodsController {

    @Autowired
    ICustomerCourseGoodsService customerCourseGoodsService;

    @GetMapping("/customerCourseGoods/findList")
    ServiceResult<List<CustomerCourseGoodsEntity>> findList(Map<String, Object> params, PagerInfo<?> pagerInfo) {

        return customerCourseGoodsService.findList(params, pagerInfo);
    }
}
